package com.baichang.taoshunda.dao.impl;

import org.springframework.stereotype.Repository;

import com.baichang.framework.dao.impl.BaseDaoImpl;
import com.baichang.taoshunda.dao.TrendsDao;
import com.baichang.taoshunda.entity.Trends;

@Repository
public class TrendsDaoImpl extends BaseDaoImpl<Trends> implements TrendsDao {

    @Override
    public int getCountByTrendsId(Integer trendsId) {
        String sql = "SELECT COUNT(0) FROM t_trends WHERE id> ?";
        return queryForInt(sql, trendsId);
    }
}